XZ decompressor: Fix decoding of empty LZMA2 streams
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:33:48 +0000 (18:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:33:48 +0000 (18:33 +0100)
commitec595a6f1c63fbb461bd7f217b71df1cb6a6a994
tree2ea96b9eebbcc41384b847adc5db65865f47d93b
parent280854080d03a1c0dfefc069a881e9cbb068578a
XZ decompressor: Fix decoding of empty LZMA2 streams

From: Lasse Collin <lasse.collin@tukaani.org>

The old code considered valid empty LZMA2 streams to be corrupt.
Note that a typical empty .xz file has no LZMA2 data at all,
and thus most .xz files having no uncompressed data are handled
correctly even without this fix.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/xz/dec_lzma2.c